package com.heartunderblade.rpc.ErrorCode;

import lombok.Data;

public enum ErrorCode {
    ConsumerError("10001", "消费者异常"),
    ProviderError("10002", "提供者异常"),;

    private final String code;
    private final String errorMessage;

    public String getCode() {
        return code;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    ErrorCode(String code, String errorMessage) {
        this.code = code;
        this.errorMessage = errorMessage;
    }
}
